package com.bishe.demo.modules.other.controller;

import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@RequestMapping("/other")
public class OtherController {
    @RequiresRoles({"管理员"})
    @GetMapping("/messages")
    public String messages(){
        return "index";
    }

    @RequiresRoles({"管理员"})
    @GetMapping("/scenery")
    public String scenery(){
        return "index";
    }

    @RequiresRoles({"管理员"})
    @GetMapping("/travels")
    public String travels(){
        return "index";
    }

    @RequiresRoles({"管理员"})
    @GetMapping("/images")
    public String images(){
        return "index";
    }
}
